/*
Illuminator (LED drawing tool for iPhone)
Copyright (C) 2008
Nik S Denin
Ivan A Vlasov
Dmitriy A Jackovlev

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _GLOBALDEFINITIONS_H
#define _GLOBALDEFINITIONS_H

#import <Foundation/Foundation.h>

#define DEBUG 1

#import "version.h"

#ifdef DEBUG
#define TRACE(a, ...) NSLog(a, ## __VA_ARGS__)
#else
#define TRACE(a, ...)
#endif

/* directory of program in user's homedir */
#define HOMEDIR [@"~/Library/Illuminator/" stringByExpandingTildeInPath]

/* duration of animation (showing toolbars, etc) */
#define ANIM_DURATION 0.4

/* events for different controls */
#define UIMouseDown 1
#define UIMouseDragged 1<<2  //within active area of control
#define UIMouseExitedDragged 1<<3  //move outside active area
#define UIMouseEntered 1<<4 //move crossed into active area
#define UIMouseExited 1<<5 //move crossed out of active area
#define UIMouseUp 1<<6 //up within the active area
#define UIMouseExitedUp 1<<7 //up outside active area

#endif // _GLOBALDEFINITIONS_H
